package com.crayon2f.test.beans;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * Created by feifan.gou@gmail.com on 2022/3/24 11:03.
 */
@Data
@NoArgsConstructor
public class City {

    private static int i;
    static {
        i = 1;
        System.out.println(i);
    }


    private String name;
    private List<City> children;

    public City(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "City{" +
                "name='" + name + '\'' +
                '}';
    }
}
